package com.lemner.motion.util;

import android.app.Activity;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 小博 on 2018/3/26.
 */

public class ActivityConllector {
    public static List<Activity> activities = new ArrayList<>();
    public static void finishAll() {
        for (Activity activity : activities) {
            if (!activity.isFinishing()) {
                activity.finish();
            }
        }

    }
}
